package com.web44.springboot.bean;

import lombok.Data;

/**
 * @Title: User
 * @Description:
 * @Auther: py
 * @Version: 1.0
 * @create 2024/3/1 9:48
 */
@Data
public class User {
    String name;
    int age;
    String role;
    String url;
    User friend;// 对象类型属性

    public User(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public User() {
    }

    public User(String name, int age, User friend) {
        this.name = name;
        this.age = age;
        this.friend = friend;
    }
}
